package org.liuyunfeng.web;

import org.liuyunfeng.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-12-08 14:36
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping
    public User user() {
        return new User().setId(111L).setUsername("刘云峰").setAge(23).setCreateTime(new Date());
    }
}

    